-
-
Notifications
You must be signed in to change notification settings - Fork 501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DietPi-Globals | G_CONFIG_INJECT: Auto escaping of special characters #2227
Conversation
@Fourdee Should not be possible any more. If it survives enough tests, I will remove all the error handling from the function. Makes it ugly 😉. |
Great work 👍
Hopefully i'll get some time tomorrow, will run some tests. |
@Fourdee Since all special characters are taken literally, this breaks the use of regex expressions. So, e.g. Ah have an idea:
|
€: 🈯️ Re-enabled ext regex. More escaping, but no other chance to avoid surprises
€: 🈯️ Enabled newline support via GCI_NEWLINE (G_CONFIG_INJECT)
€: Leave as is, very rare and visual only issue, no workaround possible, due to whiptail internal handling |
dietpi/dietpi-software
Outdated
@@ -7897,27 +7897,27 @@ _EOF_ | |||
# Set pretty URLs (without /index.php/) on Apache: | |||
if (( ${aSOFTWARE_INSTALL_STATE[83]} >= 1 )); then | |||
|
|||
PRESERVE=1 G_CONFIG_INJECT "'htaccess.RewriteBase'" "'htaccess.RewriteBase' => '/owncloud'," $config_php "'overwrite.cli.url'" | |||
CGI_PRESERVE=1 G_CONFIG_INJECT "'htaccess.RewriteBase'" "'htaccess.RewriteBase' => '/owncloud'," $config_php "'overwrite.cli.url'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GCI? 😃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Fourdee
👍 Whoopsie, fixed
Thanks Micha, great work 👍 Merged for testing. |
Status: Testing
Reference: https://github.com/Fourdee/DietPi/issues/2215
Commit list/description:
sed
error output in whiptail prompt as well(pattern1|pattern2)
or[char]+
can be done via\(pattern1\|pattern2\)
resp.[char]\+
.